package cn.zjj.basic.mapper;
import cn.zjj.basic.query.BaseQuery;
import java.util.List;

public interface BaseMapper<T> {

    List<T> selectAll();

    T selectById(Long id);

    void insert(T t);

    void update(T t);

    void delete(Long id);

    //查询总条数
    Integer count(BaseQuery query);

    //查询分页数据
    List<T> pageData(BaseQuery query);


    //批量删除
    void patchDel(List<Long> ids);

    //批量添加
    void patchInsert(List<T> t);
}
